package hxs.events.flash.display;
import flash.display.Stage;
import hxs.extras.FlashEventsStore;
import hxs.extras.FlashSignal;
import hxs.events.flash.events.EventDispatcherEvents;
/**
 * ...
 * @author Tony Polinelli
 */
import flash.display.DisplayObject;
import flash.events.Event;

class StageEvents extends InteractiveObjectEvents
{
	public function new(target:Stage) 
	{
		super(target);
	}
	
	public static function getEvents(target:Stage):StageEvents
	{
		return cast FlashEventsStore.getEvents(target);
	}
	
	/**/

	#if (flash && !nme_limit)
	public var fullScreen(getFullScreen, never):FlashSignal<Event>;
	private function getFullScreen():FlashSignal<Event>
	{
		return cast getNativeSignal(Event.FULLSCREEN);
	}
	#end
	
	public var mouseLeave(getMouseLeave, never):FlashSignal<Event>;
	private function getMouseLeave():FlashSignal<Event>
	{
		return cast getNativeSignal(Event.MOUSE_LEAVE);
	}
	
	public var resize(getResize, never):FlashSignal<Event>;
	private function getResize():FlashSignal<Event>
	{
		return cast getNativeSignal(Event.RESIZE);
	}
	
}